package com.aspose.cells;

class zbym extends zcdb {
   zbym(zqr var1) throws Exception {
      this.d = 187;
      byte var2 = 3;
      int var6;
      if (var1.b.getName() != null) {
         String var3 = var1.b.getName();
         int var4 = var3.indexOf("!");
         if (var4 != -1) {
            var3 = var3.substring(var4 + 1);
         }

         byte var5;
         if (var1.a != null) {
            var6 = var2 + var1.a.getName().length() * 2 + 4;
            var6 += var3.length() * 2 + 4;
            this.c = new byte[var6];
            this.c[0] = 1;
            this.c[2] = 2;
            var5 = 3;
            int var9 = zcch.a(this.c, var5, var1.a.getName());
            zcch.a(this.c, var9, var3);
         } else {
            var6 = var2 + var3.length() * 2 + 4;
            this.c = new byte[var6];
            this.c[0] = 1;
            var5 = 3;
            zcch.a(this.c, var5, var3);
         }
      } else {
         var6 = var2 + var1.a.getName().length() * 2 + 4;
         var6 += 16;
         this.c = new byte[var6];
         this.c[2] = 2;
         byte var7 = 3;
         int var8 = zcch.a(this.c, var7, var1.a.getName());
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.b.a().StartRow), 0, this.c, var8, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.b.a().EndRow), 0, this.c, var8 + 4, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.b.a().StartColumn), 0, this.c, var8 + 8, 4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.b.a().EndColumn), 0, this.c, var8 + 12, 4);
      }

   }
}
